﻿<%@page contentType="text/html" pageEncoding="UTF-8" isELIgnored="false"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>用户注册</title>
        <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.6.1.min.js"></script>
        <script>
            function init()
            {
                var msg=$("#msg").val();
                //                alert(msg);
  
                if(typeof(msg) != "undefined"){  
                    document.getElementById("tsmsg").innerHTML =msg;
                }
            
       
            }
            function getRandom(obj){
                var timenow = new Date().getTime();
                obj.src = "RandomAction!execute.action?d="+timenow;
            }
            window.onload = function(){
                getRandom($("#random")[0])
            }
            function login_confirm() {
                if (document.getElementById("loginName").value.replace(/^\s*/, "") == "") {
                    // document.getElementById("tsmsg").innerHTML = "会员名不能为空！";
                  
                    $("#huiyuan_name_top").css("display","none");
                    $("#huiyuan_name_bottom").css("display","block");
                    return false;
                }
                var hyname=document.getElementById("loginName").value;
                if(hyname.length<6)
                {
                    $("#huiyuan_name_top").css("display","none");
                    $("#huiyuan_name_bottom").css("display","block");
                    return false;
                }
                for(var i =0;i<hyname.length;i++)
                {
                    var text=hyname.charAt(i);
                    if(!(text<=9&&text>=0)&&!(text>='a'&&text<='z')&&!(text>='A'&&text<='Z')&&text!='-')
                    {
                        $("#huiyuan_name_top").css("display","none");
                        $("#huiyuan_name_bottom").css("display","block");
                        return false;
                    }
                }
                
                if (document.getElementById("name").value.replace(/^\s*/, "") == "") {
                    //   document.getElementById("tsmsg").innerHTML = "用户名不能为空！";
                    //                    document.getElementById("name").focus();
                    $("#name_top").css("display","none");
                    $("#name_bottom").css("display","block");
                    return false;
                }
                if (document.getElementById("temp3").value.replace(/^\s*/, "") == "") {
                    //  document.getElementById("tsmsg").innerHTML = "单位名不能为空！";
                    //                    document.getElementById("temp3").focus();
                    $("#danwei_name_top").css("display","none");
                    $("#danwei_name_bottom").css("display","block");
                    return false;
                }
                if (document.getElementById("mail").value.replace(/^\s*/, "") == "") {
                    // document.getElementById("tsmsg").innerHTML = "邮箱不能为空！";
                    //                    document.getElementById("email").focus();
                    $("#email_name_top").css("display","none");
                    $("#email_name_bottom").css("display","block");
                    return false;
                }
                var mail=document.getElementById("mail").value
                var isemail=(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/);
                if (!isemail.test(mail))
                {
                    $("#email_name_top").css("display","none");
                    $("#email_name_bottom").css("display","block");
                    return false;
                }
  
               
               
                if (document.getElementById("password").value.replace(/^\s*/, "") == "") {
                    //   document.getElementById("tsmsg").innerHTML = "密码不能为空！";
                    //                    document.getElementById("password").focus();
                    $("#mima_name_top").css("display","none");
                    $("#mima_name_bottom").css("display","block");
                    return false;
                }
                
                var password=document.getElementById("password").value;
                if(password.length<6)
                {
                    $("#mima_name_top").css("display","none");
                    $("#mima_name_bottom").css("display","block");
                    return false;
                }
                for(var i =0;i<password.length;i++)
                {
                    var text=password.charAt(i);
                    if(!(text<=9&&text>=0)&&!(text>='a'&&text<='z')&&!(text>='A'&&text<='Z')&&text!='-')
                    {
                        $("#mima_name_top").css("display","none");
                        $("#mima_name_bottom").css("display","block");
                        return false;
                    }
                }
                
                
                if (document.getElementById("password1").value.replace(/^\s*/, "") == "") {
                    //  document.getElementById("tsmsg").innerHTML = "确认密码不能为空！";
                    document.getElementById("password1").focus();
                    $("#mima2_name_top").css("display","none");
                    $("#mima2_name_bottom").css("display","block");
                    //                    return false;
                }
                
                var password1=document.getElementById("password1").value;
                if(password1.length<6)
                {
                    $("#mima2_name_top").css("display","none");
                    $("#mima2_name_bottom").css("display","block");
                    return false;
                }
                for(var i =0;i<password1.length;i++)
                {
                    var text=password1.charAt(i);
                    if(!(text<=9&&text>=0)&&!(text>='a'&&text<='z')&&!(text>='A'&&text<='Z')&&text!='-')
                    {
                        $("#mima2_name_top").css("display","none");
                        $("#mima2_name_bottom").css("display","block");
                        return false;
                    }
                }
                
                
                
                if (document.getElementById("password").value!=document.getElementById("password1").value) {
                    //   document.getElementById("tsmsg").innerHTML = "两次输入的密码不一致！";
                    //                    document.getElementById("password1").focus();
                    
                    return false;
                }
                if (document.getElementById("code").value.replace(/^\s*/, "") == "") {
                    document.getElementById("tsmsg").innerHTML = "验证码不能为空！";
                    //                    document.getElementById("code").focus();
                    $("#yzm_name_top").css("display","none");
                    $("#yzm_name_bottom").css("display","block");
                    return false;
                }
                document.getElementById("tsmsg").innerHTML = "";
                document.register.submit();

            }
                
            function   containUser(name){
                var iok=false;
                $.ajaxSetup({async:false}); 
                $.post("${pageContext.request.contextPath}/containUser.action",{ username: name},function(data){iok=data;},'json');
                //             alert(iok);
                return iok;
            }
            function   containMail(mail){
                var iok=false;
                $.ajaxSetup({async:false}); 
                $.post("${pageContext.request.contextPath}/containMail.action",{ mail: mail},function(data){iok=data;},'json');
                //                            alert(iok);
                return iok;
            }
        </script>
        <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.6.1.min.js"></script>

        <link href="${pageContext.request.contextPath}/css/cont.css" rel="stylesheet" type="text/css"/>
        <style>
            .zhuce_diqu{border:1px solid #D1D1D1; position:absolute; display:none; left:262px; top:1px}
            .zhuce_diqu td{ text-align:center; line-height:24px!important; height:24px!important;padding:0!important;margin:0 }
        </style>
        <script type="text/javascript">
            $(document).ready(function(){
                $("#zhuce_diqu_input").mouseover(function(){
                    $(".zhuce_diqu").css("display","block");
                });
                $("#zhuce_diqu_input").mouseout(function(){
                    $(".zhuce_diqu").css("display","none");
                });
		
                $(".zhuce_diqu").mouseover(function(){
                    $(".zhuce_diqu").css("display","block");
                });
                $(".zhuce_diqu").mouseout(function(){
                    $(".zhuce_diqu").css("display","none");
                });
		
            });
        </script>
        <script type="text/javascript">
            function nav10(id){
                document.getElementById('zhuce_diqu_input').value= document.getElementById(id).innerHTML;
                $(".zhuce_diqu").css("display","none");
            };
        </script>


        <!--表单验证js开始-->

        <script type="text/javascript">
            $(document).ready(function(){
                $("#loginName").focus(function(){
                    $("#huiyuan_name_top").css("display","block");
                    $("#huiyuan_name_bottom").css("display","none");
                    $("#huiyuan_name_bottom1").css("display","none");
                });
                $("#loginName").blur(function(){
                    var hyname=document.getElementById("loginName").value;
                    if(hyname.length<6&&hyname.length>0)
                    {
                        $("#huiyuan_name_top").css("display","none");
                        $("#huiyuan_name_bottom").css("display","none");
                        $("#huiyuan_name_bottom1").css("display","block");
                  
                    }
                    else{
                        for(var i =0;i<hyname.length;i++)
                        {
                            var text=hyname.charAt(i);
                            if(!(text<=9&&text>=0)&&!(text>='a'&&text<='z')&&!(text>='A'&&text<='Z')&&text!='-')
                            {
                                $("#huiyuan_name_top").css("display","none");
                                $("#huiyuan_name_bottom1").css("display","none");
                                $("#huiyuan_name_bottom2").css("display","none");
                                $("#huiyuan_name_bottom").css("display","block");
                                return;
                            }
                        }
                        //                        alert(containUser(hyname));
                        if(containUser(hyname)==true)
                        {

                            $("#huiyuan_name_top").css("display","none");
                            $("#huiyuan_name_bottom").css("display","none");
                            $("#huiyuan_name_bottom1").css("display","none");
                            $("#huiyuan_name_bottom2").css("display","block");
                        }else{
                            $("#huiyuan_name_top").css("display","none");
                            $("#huiyuan_name_bottom").css("display","none");
                            $("#huiyuan_name_bottom1").css("display","none");
                            $("#huiyuan_name_bottom2").css("display","none");
                        }
                      
                    }
     
                   
                });
		
                $("#name").focus(function(){
                    $("#name_top").css("display","block");
                    $("#name_bottom").css("display","none");
                });
                $("#name").blur(function(){
                    $("#name_top").css("display","none");
                });
		
                $("#temp3").focus(function(){
                    $("#danwei_name_top").css("display","block");
                    $("#danwei_name_bottom").css("display","none");
                });
                $("#temp3").blur(function(){
                    $("#danwei_name_top").css("display","none");
                });
		
                $("#phone").focus(function(){
                    $("#tel_name_top").css("display","block");
                    $("#tel_name_bottom").css("display","none");
                });
                $("#phone").blur(function(){
                    $("#tel_name_top").css("display","none");
                });
		
                $("#mail").focus(function(){
                    $("#email_name_top").css("display","block");
                    $("#email_name_bottom").css("display","none");
                });
                $("#mail").blur(function(){
                   
                    var mail=document.getElementById("mail").value
                    
                    var isemail=(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/);
                    if (mail.length>0&&!isemail.test(mail))
                    {
                        $("#email_name_top").css("display","none");
                        $("#email_name_bottom").css("display","block");
                         return;
                    }
                    if(containMail(mail)==true)
                    {
                        $("#email_name_top").css("display","none");
                        $("#email_name_bottom").css("display","none");
                        $("#email_name_bottom1").css("display","block");
                    }
                    else
                    {
                        $("#email_name_top").css("display","none");
                        $("#email_name_bottom").css("display","none");
                        $("#email_name_bottom1").css("display","none");
                    }
                    
                  
                });
		
                $("#password").focus(function(){
                    $("#mima_name_top").css("display","block");
                    $("#mima_name_bottom").css("display","none");
                });
                $("#password").blur(function(){
                
                    var password=document.getElementById("password").value;
                    if(password.length<6&&password.length>0)
                    {
                        $("#mima_name_top").css("display","none");
                        $("#mima_name_bottom").css("display","none");
                        $("#mima_name_bottom1").css("display","block");
               
                    }else{
                        for(var k =0;k<password.length;k++)
                        {
                            var textk=password.charAt(k);
                            if(!(textk<=9&&textk>=0)&&!(textk>='a'&&textk<='z')&&!(textk>='A'&&textk<='Z')&&textk!='-')
                            { 
                                $("#mima_name_top").css("display","none");
                                $("#mima_name_bottom1").css("display","none");
                                $("#mima_name_bottom").css("display","block");
                                return;
                            }
                        }
                        $("#mima_name_top").css("display","none");
                        $("#mima_name_bottom").css("display","none");
                        $("#mima_name_bottom1").css("display","none");
                    }
                
                
               
                });
		
                $("#password1").focus(function(){
                    $("#mima2_name_top").css("display","block");
                    $("#mima2_name_bottom").css("display","none");
                    $("#mima2_name_bottom1").css("display","none");
                    $("#mima2_name_bottom2").css("display","none");
                });
                $("#password1").blur(function(){
                    
                    var password1=document.getElementById("password1").value;
                   
                    if(password1.length<6&&password1.length>0)
                    {
                        $("#mima2_name_top").css("display","none");
                        $("#mima2_name_bottom").css("display","none");
                        $("#mima2_name_bottom2").css("display","none");
                        $("#mima2_name_bottom1").css("display","block");
               
                    }  else{
                        for(var j =0;j<password1.length;j++)
                        {
                            var text=password1.charAt(j);
                            if(!(text>=0&&text<=9)&&!(text>='a'&&text<='z')&&!(text>='A'&&text<='Z')&&text!='-')
                            {
                               
                                $("#mima2_name_top").css("display","none");
                                $("#mima2_name_bottom1").css("display","none");
                                $("#mima2_name_bottom2").css("display","none");
                                $("#mima2_name_bottom").css("display","block");
                                return;
                            }
                        }
                        if (document.getElementById("password").value!=document.getElementById("password1").value) {
                  
                            $("#mima2_name_top").css("display","none");
                            $("#mima2_name_bottom").css("display","none");
                            $("#mima2_name_bottom1").css("display","none");
                            $("#mima2_name_bottom2").css("display","block");
                  
                        }else{
                            $("#mima2_name_top").css("display","none");
                            $("#mima2_name_bottom").css("display","none");
                            $("#mima2_name_bottom1").css("display","none");
                            $("#mima2_name_bottom2").css("display","none");
                        }
                       
                    }
                
                
                });
		
                $("#code").focus(function(){
                    $("#yzm_name_top").css("display","block");
                    $("#yzm_name_bottom").css("display","none");
                });
                $("#code").blur(function(){
                    
                    if (document.getElementById("code").value.replace(/^\s*/, "") == "") {
                 
                        $("#yzm_name_top").css("display","none");
                        $("#yzm_name_bottom").css("display","block");
                        return false;
                    }else
                    {
                        $("#yzm_name_top").css("display","none");
                    }
                    
                  
                });
		
		
            });
        </script>
        <!--表单验证js结束-->
    </head>
    <body onload="init();">
        <div class="page">
            <s:include value="top.jsp"/>
            <!--首页开始-->
            <div class="cont">
                <s:form action="adduser" namespace="/" method="post" theme="simple" id="register" name="register">
                    <div class="left"><img src="images/zhuce_banner.jpg" width="1004"/></div>
                    <div class="cont_zhuce_1">
                        <table width="375" border="0" cellspacing="0" cellpadding="0">
                            <s:hidden name="msg" id="msg"/>
                            <DIV style="COLOR: red;" id="tsmsg" name="msg"> </DIV>
                            <tr>
                                <td width="21%">省市 <font color="red">*</font> </td>
                                <td width="79%" style="position:relative"><input id="zhuce_diqu_input" name="user.temp1" style="padding:2px;height:18px;line-height:18px" value="<s:property value='user.temp1'/>"/>
                                    <table width="257" border="0" cellspacing="0" cellpadding="0" class="zhuce_diqu">
                                        <tr>
                                            <td><a href="#" id="font0" onClick="nav10('font0')">北京</a></td>
                                            <td><a href="#" id="font1" onClick="nav10('font1')">上海</a></td>
                                            <td><a href="#" id="font2" onClick="nav10('font2')">天津</a></td>
                                            <td><a href="#" id="font3" onClick="nav10('font3')">重庆</a> </td>
                                            <td>&nbsp;</td>
                                        </tr>
                                        <tr>
                                            <td><a href="#" id="font4" onClick="nav10('font4')">黑龙江省</a> </td>
                                            <td><a href="#" id="font5" onClick="nav10('font5')">吉林省</a></td>
                                            <td><a href="#" id="font6" onClick="nav10('font6')">辽宁省</a></td>
                                            <td><a href="#" id="font7" onClick="nav10('font7')">山东省</a></td>
                                            <td><a href="#" id="font8" onClick="nav10('font8')">山西省</a></td>
                                        </tr>
                                        <tr>
                                            <td><a href="#" id="font9" onClick="nav10('font9')">陕西省</a></td>
                                            <td><a href="#" id="font10" onClick="nav10('font10')">甘肃省</a></td>
                                            <td><a href="#" id="font11" onClick="nav10('font11')">青海省</a></td>
                                            <td><a href="#" id="font12" onClick="nav10('font12')">四川省</a></td>
                                            <td><a href="#">湖北省</a></td>
                                        </tr>
                                        <tr>
                                            <td><a href="#" id="font13" onClick="nav10('font13')">湖南省</a></td>
                                            <td><a href="#" id="font14" onClick="nav10('font14')">河北省</a></td>
                                            <td><a href="#" id="font15" onClick="nav10('font15')">河南省</a></td>
                                            <td><a href="#" id="font16" onClick="nav10('font16')">安徽省</a></td>
                                            <td><a href="#" id="font17" onClick="nav10('font17')">江苏省</a></td>
                                        </tr>
                                        <tr>
                                            <td><a href="#" id="font18" onClick="nav10('font18')">云南省</a></td>
                                            <td><a href="#" id="font19" onClick="nav10('font19')">广东省</a></td>
                                            <td><a href="#" id="font20" onClick="nav10('font20')">福建省</a></td>
                                            <td><a href="#" id="font21" onClick="nav10('font21')">江西省</a></td>
                                            <td><a href="#" id="font22" onClick="nav10('font22')">贵州省</a></td>
                                        </tr>
                                        <tr>
                                            <td><a href="#" id="font23" onClick="nav10('font23')">浙江省</a></td>
                                            <td><a href="#" id="font24" onClick="nav10('font24')">台湾省</a></td>
                                            <td><a href="#" id="font25" onClick="nav10('font25')">福建省</a></td>
                                            <td><a href="#" id="font26" onClick="nav10('font26')">海南省</a></td>
                                            <td>&nbsp;</td>
                                        </tr>
                                        <tr>
                                            <td><a href="#" id="font27" onClick="nav10('font27')">香港</a></td>
                                            <td><a href="#" id="font28" onClick="nav10('font28')">澳门</a></td>
                                            <td></td>
                                            <td></td>
                                            <td>&nbsp;</td>
                                        </tr>
                                    </table>

                                </td>
                            </tr>
                            <tr>
                                <td>会员名 <font color="red">*</font> </td>
                                <td style="position:relative"><input name="user.loginName" value="<s:property value='user.loginName'/>" maxlength="20"  id="loginName"  style="padding:2px;height:18px;line-height:18px"/>
                                    <table border="0" cellpadding="0" cellspacing="0" style="position:absolute; left:265px;top:0; width:380px">
                                        <tr>
                                            <td id="huiyuan_name_top" style="background:#EAF7FA; border:1px solid #C7EBF5; color:#333333; padding:5px; display:none"><div style="float:left; width:345px; padding-left:20px;background:url(${pageContext.request.contextPath}/images/zhuce_img1.jpg) no-repeat left top">-建议您使用您的主营产品、公司名称或跟您业务相关的名称作为登录名。<br/>6-20个字符，只能使用字母(A-Z, a-z)、半角数字(0-9)，连字号(-)，不能包含空格或中文。</div></td>
                                        </tr>
                                        <tr>
                                            <td id="huiyuan_name_bottom"  style="background:#FFECEA; border:1px solid #FDC2BB; color:#333333; padding:5px; display:none"><div style="float:left; width:345px; padding-left:20px;background:url(${pageContext.request.contextPath}/images/zhuce_img2.jpg) no-repeat left top">请注意会员登录名只能使用英文字母(A-Z, a-z)、半角数字(0-9)，连字号(-)，不能包含空格或中文。</div></td>
                                        </tr>
                                        <tr>
                                            <td id="huiyuan_name_bottom1"  style="background:#FFECEA; border:1px solid #FDC2BB; color:#333333; padding:5px; display:none"><div style="float:left; width:345px; padding-left:20px;background:url(${pageContext.request.contextPath}/images/zhuce_img2.jpg) no-repeat left top">请输入6-20个字符的会员登录名。</div></td>
                                        </tr>
                                        <tr>
                                            <td id="huiyuan_name_bottom2"  style="background:#FFECEA; border:1px solid #FDC2BB; color:#333333; padding:5px; display:none"><div style="float:left; width:345px; padding-left:20px;background:url(${pageContext.request.contextPath}/images/zhuce_img2.jpg) no-repeat left top">会员登录名重复，请重新填写。</div></td>
                                        </tr>
                                    </table></td>
                            </tr>
                            <tr>
                                <td>您的姓名 <font color="red">*</font> </td>
                                <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                            <td width="64%" style="padding:0;position:relative"><input id="name" value="<s:property value='user.name'/>" name="user.name" style="width:90%;padding:2px;height:18px;line-height:18px"/>
                                                <table border="0" cellpadding="0" cellspacing="0" style="position:absolute; left:265px;top:0; width:380px">
                                                    <tr>
                                                        <td id="name_top" style="background:#EAF7FA; border:1px solid #C7EBF5; color:#333333; padding:5px; display:none"><div style="float:left; width:345px; padding-left:20px;background:url(${pageContext.request.contextPath}/images/zhuce_img1.jpg) no-repeat left top">建议您使用真实姓名。</div></td>
                                                    </tr>
                                                    <tr>
                                                        <td id="name_bottom"  style="background:#FFECEA; border:1px solid #FDC2BB; color:#333333; padding:5px; display:none"><div style="float:left; width:345px; padding-left:20px;background:url(${pageContext.request.contextPath}/images/zhuce_img2.jpg) no-repeat left top">请注意会员登录名只能使用英文字母(A-Z, a-z)、半角数字(0-9)，连字号(-)，不能包含空格或中文。</div></td>
                                                    </tr>
                                                </table>	
                                            </td>
                                            <td width="36%" style="padding:0"><select value="<s:property value='user.temp2'/>" name="user.temp2" style="width:70px;">
                                                    <option value="先生">先生</option>
                                                    <option value="女士">女士</option>
                                                </select></td>
                                        </tr>
                                    </table></td>
                            </tr>
                            <tr>
                                <td>单位名称 <font color="red">*</font> </td>
                                <td style="position:relative"><input name="user.temp3" value="<s:property value='user.temp3'/>" id="temp3" style="padding:2px;height:18px;line-height:18px"/>
                                    <table border="0" cellpadding="0" cellspacing="0" style="position:absolute; left:265px;top:0; width:380px">
                                        <tr>
                                            <td id="danwei_name_top" style="background:#EAF7FA; border:1px solid #C7EBF5; color:#333333; padding:5px; display:none"><div style="float:left; width:345px; padding-left:20px;background:url(${pageContext.request.contextPath}/images/zhuce_img1.jpg) no-repeat left top">请填写单位全称。</div></td>
                                        </tr>
                                        <tr>
                                            <td id="danwei_name_bottom"  style="background:#FFECEA; border:1px solid #FDC2BB; color:#333333; padding:5px; display:none"><div style="float:left; width:345px; padding-left:20px;background:url(${pageContext.request.contextPath}/images/zhuce_img2.jpg) no-repeat left top">请注意单位全称只能使用英文字母(A-Z, a-z)、半角数字(0-9)，连字号(-)，不能包含空格或中文。</div></td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td>联系电话 </td>
                                <td style="position:relative"><input name="user.phone" value="<s:property value='user.phone'/>" id="phone" style="padding:2px;height:18px;line-height:18px"/>
                                    <table border="0" cellpadding="0" cellspacing="0" style="position:absolute; left:265px;top:0; width:380px">
                                        <tr>
                                            <td id="tel_name_top" style="background:#EAF7FA; border:1px solid #C7EBF5; color:#333333; padding:5px; display:none"><div style="float:left; width:345px; padding-left:20px;background:url(${pageContext.request.contextPath}/images/zhuce_img1.jpg) no-repeat left top">可以填写座机、手机号码等。</div></td>
                                        </tr>
                                        <tr>
                                            <td id="tel_name_bottom"  style="background:#FFECEA; border:1px solid #FDC2BB; color:#333333; padding:5px; display:none"><div style="float:left; width:345px; padding-left:20px;background:url(${pageContext.request.contextPath}/images/zhuce_img2.jpg) no-repeat left top">请填写正确的座机、手机号码等。</div></td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td>电子邮箱 <font color="red">*</font> </td>
                                <td style="position:relative"><input id="mail" name="user.mail" value="<s:property value='user.mail'/>" style="padding:2px;height:18px;line-height:18px"/>
                                    <table border="0" cellpadding="0" cellspacing="0" style="position:absolute; left:265px;top:0; width:380px">
                                        <tr>
                                            <td id="email_name_top" style="background:#EAF7FA; border:1px solid #C7EBF5; color:#333333; padding:5px; display:none"><div style="float:left; width:345px; padding-left:20px;background:url(${pageContext.request.contextPath}/images/zhuce_img1.jpg) no-repeat left top">-您当前的邮箱将接受所有通知信息及相关新闻。<br/>请确保电子有限没有错误。</div></td>
                                        </tr>
                                        <tr>
                                            <td id="email_name_bottom"  style="background:#FFECEA; border:1px solid #FDC2BB; color:#333333; padding:5px; display:none"><img src="${pageContext.request.contextPath}/images/zhuce_img2.jpg" style="margin-right:10px"/>电子邮件格式不正确，请填写有效的电子邮件。</td>
                                        </tr>
                                        <tr>
                                            <td id="email_name_bottom1"  style="background:#FFECEA; border:1px solid #FDC2BB; color:#333333; padding:5px; display:none"><img src="${pageContext.request.contextPath}/images/zhuce_img2.jpg" style="margin-right:10px"/>电子邮件已经被使用，请重新填写有效的电子邮件。</td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td><p>密 码 <font color="red">*</font> </p></td>
                                <td style="position:relative"><input type="password" id="password" maxlength="20" name="user.password" style="padding:2px;height:18px;line-height:18px"/>
                                    <table border="0" cellpadding="0" cellspacing="0" style="position:absolute; left:265px;top:0; width:380px">
                                        <tr>
                                            <td id="mima_name_top" style="background:#EAF7FA; border:1px solid #C7EBF5; color:#333333; padding:5px; display:none"><div style="float:left; width:345px; padding-left:20px;background:url(${pageContext.request.contextPath}/images/zhuce_img1.jpg) no-repeat left top">6-20个字符，只能使用字母(A-Z, a-z)、半角数字(0-9)，连字号(-)，不能包含空格或中文。</div></td>
                                        </tr>
                                        <tr>
                                            <td id="mima_name_bottom"  style="background:#FFECEA; border:1px solid #FDC2BB; color:#333333; padding:5px; display:none"><div style="float:left; width:345px; padding-left:20px;background:url(${pageContext.request.contextPath}/images/zhuce_img2.jpg) no-repeat left top">请注意密码只能包含以下字符：A-Z，a-z，0-9、连字号(-)，不能包含空格或中文。</div></td>
                                        </tr>
                                        <tr>
                                            <td id="mima_name_bottom1"  style="background:#FFECEA; border:1px solid #FDC2BB; color:#333333; padding:5px; display:none"><div style="float:left; width:345px; padding-left:20px;background:url(${pageContext.request.contextPath}/images/zhuce_img2.jpg) no-repeat left top">请输入6-20个字符的密码。</div></td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td>确认密码 <font color="red">*</font></td>
                                <td style="position:relative"><input type="password" id="password1" maxlength="20"  style="padding:2px;height:18px;line-height:18px"/>
                                    <table border="0" cellpadding="0" cellspacing="0" style="position:absolute; left:265px;top:0; width:380px">
                                        <tr>
                                            <td id="mima2_name_top" style="background:#EAF7FA; border:1px solid #C7EBF5; color:#333333; padding:5px; display:none"><div style="float:left; width:345px; padding-left:20px;background:url(${pageContext.request.contextPath}/images/zhuce_img1.jpg) no-repeat left top">6-20个字符，只能使用字母(A-Z, a-z)、半角数字(0-9)，连字号(-)，不能包含空格或中文。</div></td>
                                        </tr>
                                        <tr>
                                            <td id="mima2_name_bottom"  style="background:#FFECEA; border:1px solid #FDC2BB; color:#333333; padding:5px; display:none"><div style="float:left; width:345px; padding-left:20px;background:url(${pageContext.request.contextPath}/images/zhuce_img2.jpg) no-repeat left top">请注意确认密码只能包含以下字符：A-Z，a-z，0-9、连字号(-)，不能包含空格或中文。</div></td>
                                        </tr>
                                        <tr>
                                            <td id="mima2_name_bottom1"  style="background:#FFECEA; border:1px solid #FDC2BB; color:#333333; padding:5px; display:none"><div style="float:left; width:345px; padding-left:20px;background:url(${pageContext.request.contextPath}/images/zhuce_img2.jpg) no-repeat left top">请输入6-20个字符的确认密码。</div></td>
                                        </tr>
                                        <tr>
                                            <td id="mima2_name_bottom2"  style="background:#FFECEA; border:1px solid #FDC2BB; color:#333333; padding:5px; display:none"><div style="float:left; width:345px; padding-left:20px;background:url(${pageContext.request.contextPath}/images/zhuce_img2.jpg) no-repeat left top">您两次输入的密码不一致，请确认密码后，重新输入。</div></td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <!--       <tr>
                                                      <td>会员类型 <font color="red">*</font> </td>
                                                      <td><table width="50%" border="0" cellspacing="0" cellpadding="0">
                                                        <tr>
                                                          <td valign="bottom" style="padding:0"><input type="radio" style="width:15px; border:0"/></td>
                                                          <td style="padding:0"><label for="enterprise">企业</label></td>
                                                          <td style="padding:0"><input type="radio" style="width:15px; border:0"/></td>
                                                          <td style="padding:0">个人</td>
                                                        </tr>
                                                      </table></td>
                                                    </tr>
                                                    <tr>
                                                      <td>会员身份 <font color="red">*</font> </td>
                                                      <td><table width="70%" border="0" cellspacing="0" cellpadding="0">
                                                        <tr>
                                                          <td valign="bottom" style="padding:0"><input type="radio" style="width:15px; border:0"/></td>
                                                          <td style="padding:0"><label for="enterprise">买家</label></td>
                                                          <td style="padding:0"><input type="radio" style="width:15px; border:0"/></td>
                                                          <td style="padding:0">卖家</td>
                                                                  <td style="padding:0"><input type="radio" style="width:15px; border:0"/></td>
                                                          <td style="padding:0">两者皆是</td>
                                                        </tr>
                                                      </table></td>
                                                    </tr>-->
                            <tr>
                                <td>验证码 <font color="red">*</font></td>
                                <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                            <td width="120" style="padding:0;position:relative"><input class="input" id="code" type="text" name="code" style="width:110px;"/>
                                                <table border="0" cellpadding="0" cellspacing="0" style="position:absolute; left:265px;top:0; width:380px">
                                                    <tr>
                                                        <td id="yzm_name_top" style="background:#EAF7FA; border:1px solid #C7EBF5; color:#333333; padding:5px; display:none"><div style="float:left; width:345px; padding-left:20px;background:url(${pageContext.request.contextPath}/images/zhuce_img1.jpg) no-repeat left top">-请根据图中显示的字符输入验证码<br/>-如果无法识别，请点击图片。”重新下载验证码图片。</div></td>
                                                    </tr>
                                                    <tr>
                                                        <td id="yzm_name_bottom"  style="background:#FFECEA; border:1px solid #FDC2BB; color:#333333; padding:5px; display:none"><div style="float:left; width:345px; padding-left:20px;background:url(${pageContext.request.contextPath}/images/zhuce_img2.jpg) no-repeat left top">验证码不能为空。</div></td>
                                                    </tr>
                                                </table>
                                            </td>
                                            <td style="padding:0"><img id="random" src="RandomAction!execute.action" alt="点击获取验证码" style="cursor:hand" onClick="getRandom(this);"/></td>
                                            <td style="padding:0" >点击图片更换。</td>
                                        </tr>
                                    </table></td>
                            </tr>
                            <tr>
                                <td>&nbsp;</td>
                                <td onClick="login_confirm()"><img src="images/zhuce_anniu.jpg"/>

                            </tr>
                        </table>
                        <div class="left">会员资料一经提交，即表示您同意我们的用户协议并且已经阅读和理解了我们的<a href="#">隐私策略</a>。 </div>
                    </s:form>
                </div>
            </div>
            <!--首页结束-->
            <s:include value="bottom.jsp"/>
        </div>
    </body>
</html>
